/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package ch.uzh.ifi.seal.ssqa.model.impl;

import ch.uzh.ifi.seal.ssqa.model.CClass;
import ch.uzh.ifi.seal.ssqa.model.ClassIndicator;
import ch.uzh.ifi.seal.ssqa.model.FileIndicator;
import ch.uzh.ifi.seal.ssqa.model.FunctionIndicator;
import ch.uzh.ifi.seal.ssqa.model.ModelPackage;
import ch.uzh.ifi.seal.ssqa.model.Source;

import java.util.Collection;

import org.eclipse.emf.common.notify.Notification;

import org.eclipse.emf.common.util.EList;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.InternalEObject;

import org.eclipse.emf.ecore.impl.ENotificationImpl;

import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model object '<em><b>Source</b></em>'.
 * <!-- end-user-doc -->
 * <p>
 * The following features are implemented:
 * <ul>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getFilePath <em>File Path</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getProjectPath <em>Project Path</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getFunctionNames <em>Function Names</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getIncludeNames <em>Include Names</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getIncludes <em>Includes</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getLineCount <em>Line Count</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getClasses <em>Classes</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getAssociatedFile <em>Associated File</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#isHeaderFile <em>Header File</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getCyclomaticComplexity <em>Cyclomatic Complexity</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getFanOut <em>Fan Out</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getEReference0 <em>EReference0</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getEReference1 <em>EReference1</em>}</li>
 *   <li>{@link ch.uzh.ifi.seal.ssqa.model.impl.SourceImpl#getEReference2 <em>EReference2</em>}</li>
 * </ul>
 * </p>
 *
 * @generated
 */
public class SourceImpl extends ComponentImpl implements Source {
	/**
	 * The default value of the '{@link #getFilePath() <em>File Path</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFilePath()
	 * @generated
	 * @ordered
	 */
	protected static final String FILE_PATH_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getFilePath() <em>File Path</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFilePath()
	 * @generated
	 * @ordered
	 */
	protected String filePath = FILE_PATH_EDEFAULT;

	/**
	 * The default value of the '{@link #getProjectPath() <em>Project Path</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProjectPath()
	 * @generated
	 * @ordered
	 */
	protected static final String PROJECT_PATH_EDEFAULT = null;

	/**
	 * The cached value of the '{@link #getProjectPath() <em>Project Path</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getProjectPath()
	 * @generated
	 * @ordered
	 */
	protected String projectPath = PROJECT_PATH_EDEFAULT;

	/**
	 * The cached value of the '{@link #getFunctionNames() <em>Function Names</em>}' attribute list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFunctionNames()
	 * @generated
	 * @ordered
	 */
	protected EList<String> functionNames;

	/**
	 * The cached value of the '{@link #getIncludeNames() <em>Include Names</em>}' attribute list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIncludeNames()
	 * @generated
	 * @ordered
	 */
	protected EList<String> includeNames;

	/**
	 * The cached value of the '{@link #getIncludes() <em>Includes</em>}' reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getIncludes()
	 * @generated
	 * @ordered
	 */
	protected EList<Source> includes;

	/**
	 * The default value of the '{@link #getLineCount() <em>Line Count</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLineCount()
	 * @generated
	 * @ordered
	 */
	protected static final int LINE_COUNT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getLineCount() <em>Line Count</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getLineCount()
	 * @generated
	 * @ordered
	 */
	protected int lineCount = LINE_COUNT_EDEFAULT;

	/**
	 * The cached value of the '{@link #getClasses() <em>Classes</em>}' reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getClasses()
	 * @generated
	 * @ordered
	 */
	protected EList<CClass> classes;

	/**
	 * The cached value of the '{@link #getAssociatedFile() <em>Associated File</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getAssociatedFile()
	 * @generated
	 * @ordered
	 */
	protected Source associatedFile;

	/**
	 * The default value of the '{@link #isHeaderFile() <em>Header File</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isHeaderFile()
	 * @generated
	 * @ordered
	 */
	protected static final boolean HEADER_FILE_EDEFAULT = false;

	/**
	 * The cached value of the '{@link #isHeaderFile() <em>Header File</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isHeaderFile()
	 * @generated
	 * @ordered
	 */
	protected boolean headerFile = HEADER_FILE_EDEFAULT;

	/**
	 * The default value of the '{@link #getCyclomaticComplexity() <em>Cyclomatic Complexity</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCyclomaticComplexity()
	 * @generated
	 * @ordered
	 */
	protected static final int CYCLOMATIC_COMPLEXITY_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getCyclomaticComplexity() <em>Cyclomatic Complexity</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getCyclomaticComplexity()
	 * @generated
	 * @ordered
	 */
	protected int cyclomaticComplexity = CYCLOMATIC_COMPLEXITY_EDEFAULT;

	/**
	 * The default value of the '{@link #getFanOut() <em>Fan Out</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFanOut()
	 * @generated
	 * @ordered
	 */
	protected static final int FAN_OUT_EDEFAULT = 0;

	/**
	 * The cached value of the '{@link #getFanOut() <em>Fan Out</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getFanOut()
	 * @generated
	 * @ordered
	 */
	protected int fanOut = FAN_OUT_EDEFAULT;

	/**
	 * The cached value of the '{@link #getEReference0() <em>EReference0</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEReference0()
	 * @generated
	 * @ordered
	 */
	protected FileIndicator eReference0;

	/**
	 * The cached value of the '{@link #getEReference1() <em>EReference1</em>}' reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEReference1()
	 * @generated
	 * @ordered
	 */
	protected EList<ClassIndicator> eReference1;

	/**
	 * The cached value of the '{@link #getEReference2() <em>EReference2</em>}' reference list.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #getEReference2()
	 * @generated
	 * @ordered
	 */
	protected EList<FunctionIndicator> eReference2;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SourceImpl() {
		super();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	protected EClass eStaticClass() {
		return ModelPackage.Literals.SOURCE;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getFilePath() {
		return filePath;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setFilePath(String newFilePath) {
		String oldFilePath = filePath;
		filePath = newFilePath;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__FILE_PATH, oldFilePath, filePath));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getProjectPath() {
		return projectPath;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setProjectPath(String newProjectPath) {
		String oldProjectPath = projectPath;
		projectPath = newProjectPath;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__PROJECT_PATH, oldProjectPath, projectPath));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getFunctionNames() {
		if (functionNames == null) {
			functionNames = new EDataTypeUniqueEList<String>(String.class, this, ModelPackage.SOURCE__FUNCTION_NAMES);
		}
		return functionNames;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<String> getIncludeNames() {
		if (includeNames == null) {
			includeNames = new EDataTypeUniqueEList<String>(String.class, this, ModelPackage.SOURCE__INCLUDE_NAMES);
		}
		return includeNames;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<Source> getIncludes() {
		if (includes == null) {
			includes = new EObjectResolvingEList<Source>(Source.class, this, ModelPackage.SOURCE__INCLUDES);
		}
		return includes;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getLineCount() {
		return lineCount;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setLineCount(int newLineCount) {
		int oldLineCount = lineCount;
		lineCount = newLineCount;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__LINE_COUNT, oldLineCount, lineCount));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<CClass> getClasses() {
		if (classes == null) {
			classes = new EObjectResolvingEList<CClass>(CClass.class, this, ModelPackage.SOURCE__CLASSES);
		}
		return classes;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Source getAssociatedFile() {
		if (associatedFile != null && associatedFile.eIsProxy()) {
			InternalEObject oldAssociatedFile = (InternalEObject)associatedFile;
			associatedFile = (Source)eResolveProxy(oldAssociatedFile);
			if (associatedFile != oldAssociatedFile) {
				if (eNotificationRequired())
					eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelPackage.SOURCE__ASSOCIATED_FILE, oldAssociatedFile, associatedFile));
			}
		}
		return associatedFile;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Source basicGetAssociatedFile() {
		return associatedFile;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setAssociatedFile(Source newAssociatedFile) {
		Source oldAssociatedFile = associatedFile;
		associatedFile = newAssociatedFile;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__ASSOCIATED_FILE, oldAssociatedFile, associatedFile));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public boolean isHeaderFile() {
		return headerFile;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setHeaderFile(boolean newHeaderFile) {
		boolean oldHeaderFile = headerFile;
		headerFile = newHeaderFile;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__HEADER_FILE, oldHeaderFile, headerFile));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getCyclomaticComplexity() {
		return cyclomaticComplexity;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setCyclomaticComplexity(int newCyclomaticComplexity) {
		int oldCyclomaticComplexity = cyclomaticComplexity;
		cyclomaticComplexity = newCyclomaticComplexity;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__CYCLOMATIC_COMPLEXITY, oldCyclomaticComplexity, cyclomaticComplexity));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getFanOut() {
		return fanOut;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setFanOut(int newFanOut) {
		int oldFanOut = fanOut;
		fanOut = newFanOut;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__FAN_OUT, oldFanOut, fanOut));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FileIndicator getEReference0() {
		if (eReference0 != null && eReference0.eIsProxy()) {
			InternalEObject oldEReference0 = (InternalEObject)eReference0;
			eReference0 = (FileIndicator)eResolveProxy(oldEReference0);
			if (eReference0 != oldEReference0) {
				if (eNotificationRequired())
					eNotify(new ENotificationImpl(this, Notification.RESOLVE, ModelPackage.SOURCE__EREFERENCE0, oldEReference0, eReference0));
			}
		}
		return eReference0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public FileIndicator basicGetEReference0() {
		return eReference0;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setEReference0(FileIndicator newEReference0) {
		FileIndicator oldEReference0 = eReference0;
		eReference0 = newEReference0;
		if (eNotificationRequired())
			eNotify(new ENotificationImpl(this, Notification.SET, ModelPackage.SOURCE__EREFERENCE0, oldEReference0, eReference0));
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<ClassIndicator> getEReference1() {
		if (eReference1 == null) {
			eReference1 = new EObjectResolvingEList<ClassIndicator>(ClassIndicator.class, this, ModelPackage.SOURCE__EREFERENCE1);
		}
		return eReference1;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EList<FunctionIndicator> getEReference2() {
		if (eReference2 == null) {
			eReference2 = new EObjectResolvingEList<FunctionIndicator>(FunctionIndicator.class, this, ModelPackage.SOURCE__EREFERENCE2);
		}
		return eReference2;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object eGet(int featureID, boolean resolve, boolean coreType) {
		switch (featureID) {
			case ModelPackage.SOURCE__FILE_PATH:
				return getFilePath();
			case ModelPackage.SOURCE__PROJECT_PATH:
				return getProjectPath();
			case ModelPackage.SOURCE__FUNCTION_NAMES:
				return getFunctionNames();
			case ModelPackage.SOURCE__INCLUDE_NAMES:
				return getIncludeNames();
			case ModelPackage.SOURCE__INCLUDES:
				return getIncludes();
			case ModelPackage.SOURCE__LINE_COUNT:
				return getLineCount();
			case ModelPackage.SOURCE__CLASSES:
				return getClasses();
			case ModelPackage.SOURCE__ASSOCIATED_FILE:
				if (resolve) return getAssociatedFile();
				return basicGetAssociatedFile();
			case ModelPackage.SOURCE__HEADER_FILE:
				return isHeaderFile();
			case ModelPackage.SOURCE__CYCLOMATIC_COMPLEXITY:
				return getCyclomaticComplexity();
			case ModelPackage.SOURCE__FAN_OUT:
				return getFanOut();
			case ModelPackage.SOURCE__EREFERENCE0:
				if (resolve) return getEReference0();
				return basicGetEReference0();
			case ModelPackage.SOURCE__EREFERENCE1:
				return getEReference1();
			case ModelPackage.SOURCE__EREFERENCE2:
				return getEReference2();
		}
		return super.eGet(featureID, resolve, coreType);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@SuppressWarnings("unchecked")
	@Override
	public void eSet(int featureID, Object newValue) {
		switch (featureID) {
			case ModelPackage.SOURCE__FILE_PATH:
				setFilePath((String)newValue);
				return;
			case ModelPackage.SOURCE__PROJECT_PATH:
				setProjectPath((String)newValue);
				return;
			case ModelPackage.SOURCE__FUNCTION_NAMES:
				getFunctionNames().clear();
				getFunctionNames().addAll((Collection<? extends String>)newValue);
				return;
			case ModelPackage.SOURCE__INCLUDE_NAMES:
				getIncludeNames().clear();
				getIncludeNames().addAll((Collection<? extends String>)newValue);
				return;
			case ModelPackage.SOURCE__INCLUDES:
				getIncludes().clear();
				getIncludes().addAll((Collection<? extends Source>)newValue);
				return;
			case ModelPackage.SOURCE__LINE_COUNT:
				setLineCount((Integer)newValue);
				return;
			case ModelPackage.SOURCE__CLASSES:
				getClasses().clear();
				getClasses().addAll((Collection<? extends CClass>)newValue);
				return;
			case ModelPackage.SOURCE__ASSOCIATED_FILE:
				setAssociatedFile((Source)newValue);
				return;
			case ModelPackage.SOURCE__HEADER_FILE:
				setHeaderFile((Boolean)newValue);
				return;
			case ModelPackage.SOURCE__CYCLOMATIC_COMPLEXITY:
				setCyclomaticComplexity((Integer)newValue);
				return;
			case ModelPackage.SOURCE__FAN_OUT:
				setFanOut((Integer)newValue);
				return;
			case ModelPackage.SOURCE__EREFERENCE0:
				setEReference0((FileIndicator)newValue);
				return;
			case ModelPackage.SOURCE__EREFERENCE1:
				getEReference1().clear();
				getEReference1().addAll((Collection<? extends ClassIndicator>)newValue);
				return;
			case ModelPackage.SOURCE__EREFERENCE2:
				getEReference2().clear();
				getEReference2().addAll((Collection<? extends FunctionIndicator>)newValue);
				return;
		}
		super.eSet(featureID, newValue);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public void eUnset(int featureID) {
		switch (featureID) {
			case ModelPackage.SOURCE__FILE_PATH:
				setFilePath(FILE_PATH_EDEFAULT);
				return;
			case ModelPackage.SOURCE__PROJECT_PATH:
				setProjectPath(PROJECT_PATH_EDEFAULT);
				return;
			case ModelPackage.SOURCE__FUNCTION_NAMES:
				getFunctionNames().clear();
				return;
			case ModelPackage.SOURCE__INCLUDE_NAMES:
				getIncludeNames().clear();
				return;
			case ModelPackage.SOURCE__INCLUDES:
				getIncludes().clear();
				return;
			case ModelPackage.SOURCE__LINE_COUNT:
				setLineCount(LINE_COUNT_EDEFAULT);
				return;
			case ModelPackage.SOURCE__CLASSES:
				getClasses().clear();
				return;
			case ModelPackage.SOURCE__ASSOCIATED_FILE:
				setAssociatedFile((Source)null);
				return;
			case ModelPackage.SOURCE__HEADER_FILE:
				setHeaderFile(HEADER_FILE_EDEFAULT);
				return;
			case ModelPackage.SOURCE__CYCLOMATIC_COMPLEXITY:
				setCyclomaticComplexity(CYCLOMATIC_COMPLEXITY_EDEFAULT);
				return;
			case ModelPackage.SOURCE__FAN_OUT:
				setFanOut(FAN_OUT_EDEFAULT);
				return;
			case ModelPackage.SOURCE__EREFERENCE0:
				setEReference0((FileIndicator)null);
				return;
			case ModelPackage.SOURCE__EREFERENCE1:
				getEReference1().clear();
				return;
			case ModelPackage.SOURCE__EREFERENCE2:
				getEReference2().clear();
				return;
		}
		super.eUnset(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean eIsSet(int featureID) {
		switch (featureID) {
			case ModelPackage.SOURCE__FILE_PATH:
				return FILE_PATH_EDEFAULT == null ? filePath != null : !FILE_PATH_EDEFAULT.equals(filePath);
			case ModelPackage.SOURCE__PROJECT_PATH:
				return PROJECT_PATH_EDEFAULT == null ? projectPath != null : !PROJECT_PATH_EDEFAULT.equals(projectPath);
			case ModelPackage.SOURCE__FUNCTION_NAMES:
				return functionNames != null && !functionNames.isEmpty();
			case ModelPackage.SOURCE__INCLUDE_NAMES:
				return includeNames != null && !includeNames.isEmpty();
			case ModelPackage.SOURCE__INCLUDES:
				return includes != null && !includes.isEmpty();
			case ModelPackage.SOURCE__LINE_COUNT:
				return lineCount != LINE_COUNT_EDEFAULT;
			case ModelPackage.SOURCE__CLASSES:
				return classes != null && !classes.isEmpty();
			case ModelPackage.SOURCE__ASSOCIATED_FILE:
				return associatedFile != null;
			case ModelPackage.SOURCE__HEADER_FILE:
				return headerFile != HEADER_FILE_EDEFAULT;
			case ModelPackage.SOURCE__CYCLOMATIC_COMPLEXITY:
				return cyclomaticComplexity != CYCLOMATIC_COMPLEXITY_EDEFAULT;
			case ModelPackage.SOURCE__FAN_OUT:
				return fanOut != FAN_OUT_EDEFAULT;
			case ModelPackage.SOURCE__EREFERENCE0:
				return eReference0 != null;
			case ModelPackage.SOURCE__EREFERENCE1:
				return eReference1 != null && !eReference1.isEmpty();
			case ModelPackage.SOURCE__EREFERENCE2:
				return eReference2 != null && !eReference2.isEmpty();
		}
		return super.eIsSet(featureID);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		if (eIsProxy()) return super.toString();

		StringBuffer result = new StringBuffer(super.toString());
		result.append(" (filePath: ");
		result.append(filePath);
		result.append(", projectPath: ");
		result.append(projectPath);
		result.append(", functionNames: ");
		result.append(functionNames);
		result.append(", includeNames: ");
		result.append(includeNames);
		result.append(", lineCount: ");
		result.append(lineCount);
		result.append(", headerFile: ");
		result.append(headerFile);
		result.append(", cyclomaticComplexity: ");
		result.append(cyclomaticComplexity);
		result.append(", fanOut: ");
		result.append(fanOut);
		result.append(')');
		return result.toString();
	}

} //SourceImpl
